package com.xhj.xmly.bean;

import java.util.Locale;

/**
 * Created by Administrator on 2016/12/8.
 */

public  class ResultBean {
    /**
     * programId : 45779
     * programName : 央广新闻
     * programScheduleId : 5258
     * radioCoverLarge : http://fdfs.xmcdn.com/group6/M08/84/D2/wKgDhFT_oxGzpBYYAABn8GON2wI270_mobile_large.jpg
     * radioCoverSmall : http://fdfs.xmcdn.com/group6/M08/84/D2/wKgDhFT_oxGzpBYYAABn8GON2wI270_mobile_small.jpg
     * radioId : 1065
     * radioPlayCount : 33361648
     * radioPlayUrl : {"radio_24_aac":"http://live.xmcdn.com/live/1065/24.m3u8","radio_24_ts":"http://live.xmcdn.com/live/1065/24.m3u8?transcode=ts","radio_64_aac":"http://live.xmcdn.com/live/1065/64.m3u8","radio_64_ts":"http://live.xmcdn.com/live/1065/64.m3u8?transcode=ts"}
     * rname : CNR中国之声
     */

    private int programId;
    private String programName;
    private int programScheduleId;
    private String radioCoverLarge;
    private String radioCoverSmall;
    private int radioId;
    private int radioPlayCount;
    private RadioPlayUrlBean radioPlayUrl;
    private String rname;

    public int getProgramId() {
        return programId;
    }

    public void setProgramId(int programId) {
        this.programId = programId;
    }

    public String getProgramName() {
        return programName;
    }

    public void setProgramName(String programName) {
        this.programName = programName;
    }

    public int getProgramScheduleId() {
        return programScheduleId;
    }

    public void setProgramScheduleId(int programScheduleId) {
        this.programScheduleId = programScheduleId;
    }

    public String getRadioCoverLarge() {
        return radioCoverLarge;
    }

    public void setRadioCoverLarge(String radioCoverLarge) {
        this.radioCoverLarge = radioCoverLarge;
    }

    public String getRadioCoverSmall() {
        return radioCoverSmall;
    }

    public void setRadioCoverSmall(String radioCoverSmall) {
        this.radioCoverSmall = radioCoverSmall;
    }

    public int getRadioId() {
        return radioId;
    }

    public void setRadioId(int radioId) {
        this.radioId = radioId;
    }

    public String getRadioPlayCount() {
        return String.format(Locale.getDefault(),"%.1f万人 ",radioPlayCount/10000.0);
    }

    public void setRadioPlayCount(int radioPlayCount) {
        this.radioPlayCount = radioPlayCount;
    }

    public RadioPlayUrlBean getRadioPlayUrl() {
        return radioPlayUrl;
    }

    public void setRadioPlayUrl(RadioPlayUrlBean radioPlayUrl) {
        this.radioPlayUrl = radioPlayUrl;
    }

    public String getRname() {
        return rname;
    }

    public void setRname(String rname) {
        this.rname = rname;
    }

    public static class RadioPlayUrlBean {
        /**
         * radio_24_aac : http://live.xmcdn.com/live/1065/24.m3u8
         * radio_24_ts : http://live.xmcdn.com/live/1065/24.m3u8?transcode=ts
         * radio_64_aac : http://live.xmcdn.com/live/1065/64.m3u8
         * radio_64_ts : http://live.xmcdn.com/live/1065/64.m3u8?transcode=ts
         */

        private String radio_24_aac;
        private String radio_24_ts;
        private String radio_64_aac;
        private String radio_64_ts;

        public String getRadio_24_aac() {
            return radio_24_aac;
        }

        public void setRadio_24_aac(String radio_24_aac) {
            this.radio_24_aac = radio_24_aac;
        }

        public String getRadio_24_ts() {
            return radio_24_ts;
        }

        public void setRadio_24_ts(String radio_24_ts) {
            this.radio_24_ts = radio_24_ts;
        }

        public String getRadio_64_aac() {
            return radio_64_aac;
        }

        public void setRadio_64_aac(String radio_64_aac) {
            this.radio_64_aac = radio_64_aac;
        }

        public String getRadio_64_ts() {
            return radio_64_ts;
        }

        public void setRadio_64_ts(String radio_64_ts) {
            this.radio_64_ts = radio_64_ts;
        }
    }
}
